#pragma once

#include "cv.h"
#include "highgui.h"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>

int bar(IplImage* frame,int threshold);
void  update_mhi( IplImage* img, IplImage* dst, int diff_threshold );
void code(IplImage* rawImage,int *load_);
void initialise();
void find_connected_components(IplImage *mask,int poly1_hull0,float perimScale,int *num,CvRect *bbs,CvPoint *centers);
void showmultiple(IplImage* image,CvRect* rect,CvPoint* cent,int nr);
void set(int min_,int max_,int bounds_);
void people(IplImage* img);
void position(IplImage* image,CvRect* rect,CvPoint* cent,int num,int* trackx,int* tracky,int tracked,int x1,int y1,int* recwidth_,int* recheight_);
void sizeCalc(IplImage* image,CvRect* rect,CvPoint* cent,int num,int* trackx,int* tracky,int* recwidth_,int* recheight_);
void sizesmall(IplImage* image,CvRect* rect,CvPoint* cent,int num,int* trackx,int* tracky,int* recwidth_,int* recheight_);
void random(IplImage* image,CvRect* rect,CvPoint* cent,int num,int* trackx,int* tracky,int* recwidth_,int* recheight_);
void detectAndDraw( IplImage* image,bool* foun_);
void Picture(IplImage* image,int bco);
void calcbarc(int* numbret,int*numbret2,int barcodenum,char* nameg);
void mean_( IplImage* frame,CvRect selection ,int track_object,int backproject_mode,int vmin,int vmax,int smin);
void Graytobin(IplImage* image,int thresh);
void reset_();